/*
 * flash.h
 *
 *  Created on: Dec 4, 2022
 *      Author: Administrator
 */

#ifndef USER_DRV_FLASH_H_
#define USER_DRV_FLASH_H_

#include "CONFIG.h"
#include "hal_spi.h"
#include "hal_gpio.h"

void SPI_Flash_Init(struct spi_type *spix,struct gpio_type *cs_pin);
void SPI_Flash_Read(u8 *pBuffer, u32 ReadAddr, u16 size);
void SPI_Flash_Write(u8 *pBuffer, u32 WriteAddr, u16 size);
#endif /* USER_DRV_UART_H_ */
